from django.test import TestCase

# Create your tests here.
from django.utils import timezone

from DjangoProject.mysite import manage
from DjangoProject.mysite.polls.models import Question


def run():
    manage.main()
    q = Question(question_text="你好吗?are you ok ?", pub_date=timezone.now())
    print(q.save(), '\n保持完毕')
    print(q.id, '  q的信息:', q)


if __name__ == '__main__':

    run()
